package com.sardine.base.esm.annotation;

/**
 * 上海京东到家元信信息技术有限公司<br>
 * Created with IntelliJ IDEA.
 * Date:2017/5/22
 * Time:16:58
 *
 * @author daifeng<br>
 *         daifeng@imdada.cn
 * @since JDK 1.7 <br>
 * Copyright (c) 2017 imdada System Incorporated All Rights Reserved.
 */
public class EsmEntity {
    /**
     * ES 表名称
     */
    private String typeName;
    /**
     * 路由值
     */
    private String routing;
    /**
     * 主键值
     */
    private String id;
    /**
     * 存储数据
     */
    private String source;
    /**
     * 读别名
     */
    private String readAlias;
    /**
     * 写别名
     */
    private String writeAlias;
    /**
     * 是否及时刷新
     */
    private boolean refresh=false;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getRouting() {
        return routing;
    }

    public void setRouting(String routing) {
        this.routing = routing;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getReadAlias() {
        return readAlias;
    }

    public void setReadAlias(String readAlias) {
        this.readAlias = readAlias;
    }

    public String getWriteAlias() {
        return writeAlias;
    }

    public void setWriteAlias(String writeAlias) {
        this.writeAlias = writeAlias;
    }

    public boolean isRefresh() {
        return refresh;
    }

    public void setRefresh(boolean refresh) {
        this.refresh = refresh;
    }
}
